/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import comandaXM.utils.HibernateUtil;
import org.hibernate.classic.Session;

/**
 *
 * @author xmarti
 */
public class provaConnexio extends HibernateUtil{
    public static void main23(){
         Session session = HibernateUtil.getSessionFactory().getCurrentSession();
         session.beginTransaction();
         if (session.isConnected()){
             System.out.println("connexio oK" ); 
         }else{
             System.out.println("connexio error" ); 
         }
         
    }
}
